<%@ tag import="org.apache.shiro.subject.SimplePrincipalCollection" %>
<%@ tag import="com.dili.dd.gpi.service.account.ShiroDbRealm" %>
<%@ tag import="java.util.Set" %>
<%@ tag import="com.dili.dd.gpi.vo.PageMenuVo" %>
<%@ tag import="com.dili.dd.gpi.vo.BreadCrumb" %>
<%@ tag import="com.dili.dd.gpi.domain.PageMenu" %>
<%@tag pageEncoding="UTF-8"%>
<%@attribute name="display"
             required="false"
             rtexprvalue="true"
             description="是否展示"
             type="java.lang.Boolean"
        %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<div>
<ul class="breadcrumb">
    <%
        PageMenuVo menuVo = (PageMenuVo)request.getAttribute("menuVo");
        if(menuVo != null){
            BreadCrumb breadCrumb = menuVo.getBreadCrumb();
            if(breadCrumb != null){
                for (PageMenu menu : breadCrumb.getBreadCrumb()) {



    %>
    <li><a <%
        if(breadCrumb.isCurrent(menu)){
            out.print(" class=\"active\" ");
        }else{
            out.print(" href=\"" + menu.getUrl() + "\" ");
        }
     %> ><%= menu.getName()%></a>
    </li>
    <%
                }
            }
        }
    %>
</ul>
</div>
